import axios from 'libs/api.request'

// 获取供应商信息
export const getSupplierInfo = (data: Object) => {
    return axios.request({
        url: 'getSupplierInfo',
        method: 'get',
        params: data
    })
}

// 保存供应商获取的号码
export const keepGetNumber = (data: Object) => {
    return axios.request({
        url: 'keepGetNumber',
        method: 'post',
        data
    })
}

// 获取当天的取号，没验收的信息
export const getGetNumberInfo = (data: Object) => {
    return axios.request({
        url: 'getGetNumberInfo',
        method: 'get',
        params: data
    })
}


// 获取正在进行的和即将进行的号
export const getNowNextcode = () => {
    return axios.request({
        url: 'getNowNextcode',
        method: 'get'
    },{
        isSpin: false
    })
}


export default {
    getSupplierInfo,
    getGetNumberInfo,
    keepGetNumber,
    getNowNextcode
}